package com.framework.core.api.feign;

import com.framework.common.constant.ServiceNameConstants;
import com.framework.common.response.BaseQueryResponse;
import com.framework.core.api.feign.factory.RemoteApiFallbackFactory;
import com.framework.core.api.request.LunimgQueryReq;
import com.framework.core.api.response.LunimgQueryRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhoubb
 * @version V1.0
 * @Date 2020/4/14 0:29
 * @since JDK 1.8
 */
@FeignClient(name = ServiceNameConstants.SERVICE_CORE,
        fallbackFactory = RemoteApiFallbackFactory.class)
public interface RemoteApiService {

    @RequestMapping(value = "api/lunlist",method = RequestMethod.GET)
    public BaseQueryResponse<LunimgQueryRes> getLunimgList(LunimgQueryReq lunimgQueryReq);

    @RequestMapping(value="common/identityCard", method=RequestMethod.GET)
    public String identityCard(@RequestParam(value = "cardNo", required = true) String cardNo);

    @RequestMapping(value = "common/sendSms",method = RequestMethod.GET)
    public String sendSms(@RequestParam(value = "phone") String phone,
                          @RequestParam(value = "code", required = false) String code,
                          @RequestParam(value = "params", required = false) String params,
                          @RequestParam(value = "skin", required = false) String skin,
                          @RequestParam(value = "name", required = false) String name);
}
